<template>
  <error-content code="404" desc="Oh~~您的页面好像飞走了~" :src="src" />
</template>

<script>
import error404 from '@/assets/images/error-page/error-404.svg'
import errorContent from './error-content.vue'
import { TheRoute } from '@utils/constant'
export default {
  name: 'error_404',
  components: {
    errorContent,
  },
  data() {
    return {
      src: error404,
    }
  },
  mounted() {
    let isTheRoute = this.$CONST.TheRoute.filter(
      (item) => item === this.$route.fullPath
    )
    if (isTheRoute.length > 0) {
      this.$message.info(
        'If you want to access this link, please contact the administrator'
      )
    }
  },
}
</script>
